package me.nujoug.foctapp;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ProgressBar;
import android.widget.TextView;

public abstract class WebBaseActivity extends Activity {
	protected String referer;
	protected String thisUrl;
	
	protected TextView mTitle;
	protected ProgressBar pb;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// accept parameters
		Bundle bunde = this.getIntent().getExtras();
		if (bunde != null){
			referer = bunde.getString("Referer");
			thisUrl = bunde.getString("appUrl");
		}
	}

	protected void passWebData(Bundle bundle) {
		if (bundle != null && thisUrl != null)
			bundle.putString("Referer", thisUrl);
	}

	protected abstract void handleHttpResponse(Object result);
}
